<div class="leftbox1">
<div class="search">
<form name="SearchForm" action="http://www.sandib2b.cn/supply/search.php" method="get" target="_blank">
<label></label>
<table border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td><input name="subject" type="text" class="searchtxt" value="产品搜索" onFocus="this.value=''"/></td>
    <td><input type="image" class="searchbut" src="/images/scbut.gif" /></td>
  </tr>
</table>
</form>
</div>
</div>
<div class="leftbox1">
<div class="name fontwhite b"><a href="/hot-list/1.htm">热点产品分类</a></div>
<div class="info">
<ul>
<?php 
$l_rs=@mysql_query("select id,p_cname from hot_list where member_id=".$m_row['id']);
while($l_row=@mysql_fetch_array($l_rs)){
$num_rs=@mysql_query("select count(id) from hot_pro where p_list_id=".$l_row['id']." and member_id=".$m_row['id']." and p_sh=1");
$num=mysql_result($num_rs,0);
@mysql_free_result($num_rs);
?>
<li><a href="/hot-group/<?=$l_row[id]?>/1.htm"><?=$l_row[p_cname]?></a> <font class="fontgray">[<?=$num?>]</font> </li>
<?php }?>
</ul>
</div>
</div>
<div class="leftbox1">
<div class="name fontwhite b"><a href="http://job.sandib2b.cn/jobcom/<?=$m_url1?>/" target="_blank">人才招聘</a></div>
</div>
<div class="leftbox1">
<div class="name fontwhite b"><a>相关企业</a></div>
<div class="info">
<ul>
<?php 
$where = ' m_sh=1 ';
if($m_row['catalog_id1']>0)
{
	$where .= " and catalog_id1=".$m_row['catalog_id1'];
}
if($m_row['catalog_id2']>0)
{
	$where .= " and catalog_id2=".$m_row['catalog_id2'];
}
if($m_row['catalog_id3']>0)
{
	$where .= " and catalog_id3=".$m_row['catalog_id3'];
}
//echo $where;
$rs=mysql_query("select id,m_user,m_cname,m_type from member where  $where  order by m_endtime desc limit 8");
while($row=mysql_fetch_array($rs)){
if($row[m_type]==6){
   $m_url="http://$row[m_user].sandib2b.cn";
}else{
   $m_url="http://www.sandib2b.cn/cn/template/$row[m_user]/";
}
?>
<li><a href="<?=$m_url?>" target="_blank"><?=mb_substr($row['m_cname'],0,12,'utf-8')?></a></li>
<?php }mysql_free_result($rs);
?></ul>
</div>
</div>
<?php
$c_rs=@mysql_query("select web_list.id,web_list.w_name,web_a_list.web_list_type from web_list inner join web_a_list on (web_list.w_type_id=web_a_list.id) where web_list.member_id='$m_row[id]' order by web_list.id asc");
while($c_row=@mysql_fetch_array($c_rs)){
?>
<div class="leftbox1">
<div class="name fontwhite b"><a href="/custom/<?=$c_row[web_list_type]?>/<?=$c_row[id]?>/1.htm"><?=$c_row[w_name]?></a></div>
</div>
<?php }?>
<?php if($m_row['m_type']=="6"){?>
<div class="DiamondSupplier"><a href="/certificate.htm"><img src="/<?=$template?>/images/diamondsupplier.gif"  width="160" height="142" /></a>
<br />
<br />
此会员已通过钻石认证
  </div>
<?php }?>
